// Author: InfiniteStarlight
#include<bits/stdc++.h>
using namespace std;
#define sz(v) (int)((v).size())
#define ALL(v) (v).begin(),(v).end()
#define rALL(v) (v).rbegin(),(v).rend()
#define srt(v) sort(ALL(v))
#define rsrt(v) sort(rALL(v))
#define lb(v,x) (int)(lower_bound(ALL(v),x)-(v).begin())
#define ub(v,x) (int)(upper_bound(ALL(v),x)-(v).begin())
#define uni(v) (v).resize(unique(ALL(v))-(v).begin())
#define rev(v) reverse(ALL(v))
#define mp make_pair
#define pb emplace_back
#define inf 0x3f3f3f3f
using pii=pair<int,int>;
using ll=long long;
using ull=unsigned long long;
using ld=long double;
using i128=__int128_t;
using u128=__uint128_t;
int r[100100];
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int n;
	cin>>n;
	for(int i=1;i<=n;i++)
		cin>>r[i];
	sort(r+1,r+n+1);
	int p=1;
	for(int i=1;i<=n;i++)
		if(r[p]<r[i]) p++;
	cout<<n-p+1<<'\n';
	return 0;
}